﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GH.BLL;
using System.Data;

public class Common
{
    /// <summary>
    /// DropDownList控件绑定
    /// </summary>
    /// <param name="ddlDropDownList"></param>
    /// <param name="strFlg"></param>
    public static void SetDataBound(  System.Web.UI.WebControls.DropDownList ddlDropDownList, string strOption)
    {

        User bllUser=new User();
        DataTable dtSearch =bllUser.GetOptionList(strOption).Tables[0];
        ddlDropDownList.DataSource = dtSearch;
        ddlDropDownList.DataTextField = "区分名称";
        ddlDropDownList.DataValueField = "小区分";
        ddlDropDownList.DataBind();
    }
   
}

